/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ExibicaoResultado.java
 *
 * Created on 08/05/2010, 12:54:43
 */
package Forms;

import arquivos.Centraliza;
import arquivos.Resultado;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;


/**
 *
 * @author rafaelob
 */
public class ComparePanelOptions extends javax.swing.JFrame {

    ArrayList<Integer> numbers;
    ArrayList<Resultado> resultados;

    /** Creates new form ExibicaoResultado */
    public ComparePanelOptions() {
        initComponents();
        jSpinnerFaixaNumber.setEnabled(false);
        jSpinnerQuantNumeros.setEnabled(false);
        jLabelFaixa.setEnabled(false);
        jLabelQuantidadeNumeros.setEnabled(false);
        jRadioButtonFullTest.setVisible(false);
        String tamTabela = jComboBoxTamanhoTabela.getSelectedItem().toString();
        int tamanhoTabela = Integer.parseInt(tamTabela);
        jSpinnerQuantNumeros.setModel(new javax.swing.SpinnerNumberModel(0, 0, tamanhoTabela, 1));
        numbers = new ArrayList<Integer>();
        Centraliza.setCentro(this, 0, 200);
    }

    public ArrayList<Integer> getNumbers() {
        return numbers;
    }

    public void setNumbers(ArrayList<Integer> numbers) {
        this.numbers = numbers;
    }

    public ArrayList<Resultado> getResultados() {
        return resultados;
    }

    public void setResultados(ArrayList<Resultado> resultados) {
        this.resultados = resultados;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jComboBoxOpcaoGeral = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jRadioButtonFullTest = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jLabelTabelaSize = new javax.swing.JLabel();
        jComboBoxTamanhoTabela = new javax.swing.JComboBox();
        jLabelQuantidadeNumeros = new javax.swing.JLabel();
        jSpinnerFaixaNumber = new javax.swing.JSpinner();
        jSpinnerQuantNumeros = new javax.swing.JSpinner();
        jLabelFaixa = new javax.swing.JLabel();
        jSpinnerNumberInsert = new javax.swing.JSpinner();
        jButtonAdicionar = new javax.swing.JButton();
        jButtonDropLast = new javax.swing.JButton();
        jLabelQuant = new javax.swing.JLabel();
        jLabelQuantidadeInserida = new javax.swing.JLabel();
        jButtonReset = new javax.swing.JButton();
        jButtonGerar = new javax.swing.JButton();
        jButtonVoltar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 0)));

        jComboBoxOpcaoGeral.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Inserir Manualmente", "Gerar Números Aleatórios" }));
        jComboBoxOpcaoGeral.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxOpcaoGeralActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Escolha uma opção abaixo:");

        jLabel2.setFont(new java.awt.Font("Dialog", 1, 20));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("Painel de Opções");
        jLabel2.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);

        jRadioButtonFullTest.setFont(new java.awt.Font("Dialog", 1, 14));
        jRadioButtonFullTest.setText("Full Test");
        jRadioButtonFullTest.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonFullTestActionPerformed(evt);
            }
        });

        jButton1.setText("FAQ");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jComboBoxOpcaoGeral, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(78, 78, 78)
                                .addComponent(jRadioButtonFullTest, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel1)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(221, 221, 221)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(168, 168, 168)
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(160, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(jLabel2)
                .addGap(29, 29, 29)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxOpcaoGeral, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jRadioButtonFullTest))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addContainerGap())
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        jLabelTabelaSize.setText("Tamanho da Tabela:");

        jComboBoxTamanhoTabela.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "11", "13", "17", "19", "23", "29", "31", "37", "41", "97", "199", "307", "401", "499", "599", "701", "797", "887", "997", "1009" }));
        jComboBoxTamanhoTabela.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxTamanhoTabelaActionPerformed(evt);
            }
        });

        jLabelQuantidadeNumeros.setText("Quantidade de Números:");

        jSpinnerFaixaNumber.setModel(new javax.swing.SpinnerNumberModel(3000, 3000, 100000, 1));

        jSpinnerQuantNumeros.setModel(new javax.swing.SpinnerNumberModel(1, 1, 100, 1));

        jLabelFaixa.setText("Faixa 0-X:");

        jSpinnerNumberInsert.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100000, 1));

        jButtonAdicionar.setText("Adicionar");
        jButtonAdicionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAdicionarActionPerformed(evt);
            }
        });

        jButtonDropLast.setText("Drop Last");
        jButtonDropLast.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDropLastActionPerformed(evt);
            }
        });

        jLabelQuant.setText("Quantidade de Números a serem Inseridos:");

        jLabelQuantidadeInserida.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);

        jButtonReset.setText("Resetar");
        jButtonReset.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonResetActionPerformed(evt);
            }
        });

        jButtonGerar.setText("Gerar");
        jButtonGerar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGerarActionPerformed(evt);
            }
        });

        jButtonVoltar.setText("Voltar");
        jButtonVoltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVoltarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButtonReset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButtonDropLast, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButtonAdicionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabelTabelaSize, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(38, 38, 38)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jComboBoxTamanhoTabela, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jSpinnerNumberInsert, javax.swing.GroupLayout.PREFERRED_SIZE, 81, Short.MAX_VALUE)))
                            .addComponent(jLabelQuant)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(44, 44, 44)))
                .addGap(24, 24, 24)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelQuantidadeNumeros)
                            .addComponent(jLabelFaixa))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(13, 13, 13)
                                .addComponent(jSpinnerFaixaNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jSpinnerQuantNumeros, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jLabelQuantidadeInserida, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonGerar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(45, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTabelaSize)
                    .addComponent(jComboBoxTamanhoTabela, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelQuantidadeNumeros)
                    .addComponent(jSpinnerQuantNumeros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpinnerNumberInsert, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelFaixa)
                    .addComponent(jSpinnerFaixaNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonDropLast, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonReset, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelQuant, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelQuantidadeInserida, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonVoltar)
                    .addComponent(jButtonGerar))
                .addContainerGap(18, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jComboBoxOpcaoGeralActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxOpcaoGeralActionPerformed
        if (jComboBoxOpcaoGeral.getSelectedIndex() == 0) {
            jSpinnerFaixaNumber.setEnabled(false);
            jSpinnerQuantNumeros.setEnabled(false);
            jLabelFaixa.setEnabled(false);
            jLabelQuantidadeNumeros.setEnabled(false);
            jSpinnerNumberInsert.setEnabled(true);
            jComboBoxTamanhoTabela.setEnabled(true);
            jButtonAdicionar.setEnabled(true);
            jButtonReset.setEnabled(true);
            jButtonDropLast.setEnabled(true);
            jLabelQuantidadeInserida.setVisible(true);
            jLabelTabelaSize.setEnabled(true);
            jLabelQuantidadeInserida.setEnabled(true);
            jLabelQuant.setEnabled(true);
            jRadioButtonFullTest.setVisible(false);



        } else {
            jLabelQuantidadeInserida.setVisible(false);
            jLabelQuant.setEnabled(false);
            jLabelQuantidadeInserida.setEnabled(false);
            jSpinnerNumberInsert.setEnabled(false);
            jButtonAdicionar.setEnabled(false);
            jButtonReset.setEnabled(false);
            jButtonDropLast.setEnabled(false);
            jSpinnerFaixaNumber.setEnabled(true);
            jSpinnerQuantNumeros.setEnabled(true);
            jLabelFaixa.setEnabled(true);
            jRadioButtonFullTest.setVisible(true);
            if (jRadioButtonFullTest.isSelected()) {
                jLabelQuantidadeNumeros.setEnabled(false);
            } else {
                jLabelQuantidadeNumeros.setEnabled(true);
            }


        }

    }//GEN-LAST:event_jComboBoxOpcaoGeralActionPerformed

    private void jButtonAdicionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAdicionarActionPerformed
        String tamTabela = jComboBoxTamanhoTabela.getSelectedItem().toString();
        int tamanhoTabela = Integer.parseInt(tamTabela);
        if (tamanhoTabela <= numbers.size()) {
            
            Alert alert = new Alert();
            alert.setMessage("Quantidade Máxima de Números Atingida");
            alert.setVisible(true);
        } else {
            if (numbers.contains((Integer) jSpinnerNumberInsert.getValue())) {
                Alert alert = new Alert();
                alert.setMessage("Número já inserido, insira outro");
                alert.setVisible(true);
            } else {
                numbers.add((Integer) jSpinnerNumberInsert.getValue());
                jLabelQuantidadeInserida.setText(String.valueOf(numbers.size()));

            }
        }

    }//GEN-LAST:event_jButtonAdicionarActionPerformed

    private void jButtonDropLastActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDropLastActionPerformed
        if (numbers.size() == 0) {
            Alert alert = new Alert();
            alert.setMessage("Não existem números para serem retirados");
            alert.setVisible(true);
        } else {
            numbers.remove(numbers.size() - 1);
            jLabelQuantidadeInserida.setText(String.valueOf(numbers.size()));

        }

    }//GEN-LAST:event_jButtonDropLastActionPerformed

    private void jButtonResetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonResetActionPerformed
        Alert alert = new Alert();
        alert.setMessage("Deseja Resetar? Clique em OK");
        alert.setVisible(true);
        alert.getjButton1().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                numbers = new ArrayList<Integer>();
                jLabelQuantidadeInserida.setText(String.valueOf(numbers.size()));
            }
        });




    }//GEN-LAST:event_jButtonResetActionPerformed

    private void jButtonGerarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGerarActionPerformed
        String tamTabela = jComboBoxTamanhoTabela.getSelectedItem().toString();
        int tamanhoTabela = Integer.parseInt(tamTabela);
        if (jComboBoxOpcaoGeral.getSelectedIndex() == 0) {
            if (tamanhoTabela < numbers.size()) {
                Alert alert = new Alert();
                alert.setMessage("Quantidade de Números Maior que Tamanho da Tabela");
                alert.setVisible(true);
            } else {
            }
        }
        else {
            if (jRadioButtonFullTest.isSelected()) {


            }

            else {
            }


        }

    }//GEN-LAST:event_jButtonGerarActionPerformed

    private void jButtonVoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonVoltarActionPerformed
        this.dispose();
        CompareMetodosHash metoDosHash = new CompareMetodosHash();
        metoDosHash.setVisible(true);
    }//GEN-LAST:event_jButtonVoltarActionPerformed
    private void jRadioButtonFullTestActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonFullTestActionPerformed
        if (jRadioButtonFullTest.isSelected()) {
            jLabelQuantidadeNumeros.setEnabled(false);
        } else {
            jLabelQuantidadeNumeros.setEnabled(true);
        }
    }//GEN-LAST:event_jRadioButtonFullTestActionPerformed

    private void jComboBoxTamanhoTabelaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxTamanhoTabelaActionPerformed
        String tamTabela = jComboBoxTamanhoTabela.getSelectedItem().toString();
        int tamanhoTabela = Integer.parseInt(tamTabela);
        System.out.println(tamTabela);
        jSpinnerQuantNumeros.setModel(new javax.swing.SpinnerNumberModel(0, 0, tamanhoTabela, 1));
    }//GEN-LAST:event_jComboBoxTamanhoTabelaActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new ComparePanelOptions().setVisible(true);




            }
        });




    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButtonAdicionar;
    private javax.swing.JButton jButtonDropLast;
    private javax.swing.JButton jButtonGerar;
    private javax.swing.JButton jButtonReset;
    private javax.swing.JButton jButtonVoltar;
    private javax.swing.JComboBox jComboBoxOpcaoGeral;
    private javax.swing.JComboBox jComboBoxTamanhoTabela;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabelFaixa;
    private javax.swing.JLabel jLabelQuant;
    private javax.swing.JLabel jLabelQuantidadeInserida;
    private javax.swing.JLabel jLabelQuantidadeNumeros;
    private javax.swing.JLabel jLabelTabelaSize;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JRadioButton jRadioButtonFullTest;
    private javax.swing.JSpinner jSpinnerFaixaNumber;
    private javax.swing.JSpinner jSpinnerNumberInsert;
    private javax.swing.JSpinner jSpinnerQuantNumeros;
    // End of variables declaration//GEN-END:variables
}
